package top.overstep.zboot.system.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * 读取正则表达式配置类
 * @author coderZzz
 */
@Component
@ConfigurationProperties(prefix="regular")
@PropertySource(value = "classpath:prop/regular.properties")
public class RegularConfig {
    /**
     * 存放配置文件的Map，请勿修改配置文件中的值
     */
    private Map<String,String> map;

    public static final String USERNAME_KEY= "username";
    public static final String EMAIL_KEY = "email";
    public static final String MOBILE_KEY= "mobile";

    public Map<String, String> getRegularMap(){
        return this.map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }
}
